package com.a01_2021.thousandstimes.instance.service;

import com.a01_2021.thousandstimes.exception.CustomException;
import com.a01_2021.thousandstimes.instance.entity.Note;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author E1xP
 * @since 2021-03-10
 */
public interface INoteService extends IService<Note> {

    Note addNote(long userId, String noteName, String noteContent);

    List<Note> getNotes(long userId);

    List<Note> addNotes(long userId, List<Note> noteList);

    Note updateNote(long userId, Note note) throws CustomException;
}
